Don't take a NautilusWindow argument in gtk_places_sidebar_new()
authorFederico Mena Quintero <federico@gnome.org>
Wed, 7 Sep 2011 22:40:49 +0000 (17:40 -0500)
committerFederico Mena Quintero <federico@gnome.org>
Tue, 4 Sep 2012 01:38:34 +0000 (20:38 -0500)
We will move the window-related initialization to ::map() or to a constructor.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gtk/gtkplacessidebar.c

index 25bf42d3a0ca88865182ef8c6fa4ae1d2c468e57..f7897feabab91af0fc0f632bb0ce131e63a19c42 100644 (file)
@@ -3353,14 +3353,9 @@ gtk_places_sidebar_style_set (GtkWidget *widget,
 }
 
 GtkWidget *
-gtk_places_sidebar_new (NautilusWindow *window)
+gtk_places_sidebar_new (void)
 {
-       GtkPlacesSidebar *sidebar;
-
-       sidebar = g_object_new (gtk_places_sidebar_get_type (), NULL);
-       gtk_places_sidebar_set_parent_window (sidebar, window);
-
-       return GTK_WIDGET (sidebar);
+       return GTK_WIDGET (g_object_new (gtk_places_sidebar_get_type (), NULL));
 }